package cn.itsource.org.service;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.basic.query.PageList;
import cn.itsource.org.domain.Department;
import com.github.pagehelper.PageInfo;

/**
 * 部门的业务层
 */
public interface IDepartmentService {

    /**
     * 分页查询
     * @return
     */
    PageList<Department> getAllByPage(BaseQuery query);

    /**
     * 删除操作
     */
    void delete(Long id);

    /**
     * 新增或修改操作
     */
    void saveOrUpdate(Department department);
}
